#define _CRT_SECURE_NO_WARNINGS
#include "Stack.h"

int main()
{
	ST st = { 0 };
	STInit(&st);
	STPush(&st, 1);
	STPush(&st, 2);
	printf("%d ", STTop(&st));
	STPop(&st);
	STPush(&st, 3);
	STPush(&st, 4);

	while (!STEmpty(&st))
	{

		printf("%d " , STTop(&st));
			STPop(&st);
	}
	STDestroy(&st);
}